import req from '@/utils/request.js';
import * as URL from '@/constants/api.js';
// getCommentsList
export function getCommentsList(id) { // todo
  return req({
    url: URL.COMMENTS_LIST,
    params: {
      type: 'a',
      source: id,

    }
  })
    // 处理成功
    // .then(res => console.log(res))
    .then(res => res.data.data.results)
    // 处理错误
    .catch(() => null);
}
